Replies: 3 comments 1 reply
-
Thanks for putting this together, Brian! I'll share the feedback that I already voiced in the MDN content call on Monday. I'm super happy about the adoption of content categorization ala diataxis where reference material is separate from guides, tutorials, and how-tos. So good! I also really like how in other content areas reference pages are now neatly organized by the type of thing they are:
The new CSS restructuring proposal is consistent with that, too:
However, I find it surprising that this proposal is not following that model. I would have expected:
I think there is a need to put together "Groups of interfaces" that form a "Module" (although, I'm not sure "Module" is a good terminology, in web-features, we call these things features and groups). In the CSS reorg proposal these modules live separately and the reference pages are not put under their module. In JavaScript, the JS Guide categorizes things, but again the JS reference pages are not sorted below these categories. Same in HTML and HTTP. I think there is a need for these higher-level groups, or modules or however we want to name this. I'm just not sure what the reasons are for having them in the structure in API/. I think I would say, these groups could live one level higher up as often they are not just about a collection of API interfaces, but rather a collection of API interfaces, CSS properties, HTML elements, HTTP headers, etc. Examples include:
I could go on and find more examples. I haven't done the work of playing this through for everything. I can, though, to try to illustrate my point in a sheet if you like, but basically, yes, let's come up with groups of things that make sense but in my view it would be good to do that more generally and not just within the API tree. There I would love to stick to the structure that MDN has everywhere else and that you all worked on and made very consistent over the last few months. I also think this would avoid the problem of how to elegantly handle extensions as they would still live in a monolithic api/reference/Interfaces structure. A more higher up Window Management tree can then pick from any reference material it needs to pick from (API interfaces, HTTP headers, ...) and give the overview, guides, how-tos, tutorials for that "API" (API in the more generic meaning and not just in the meaning of a collection of WebIDL interfaces). |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
APIs are tricky. In a similar fashion to CSS, we want to create more of a hierarchy and divide up the current monolithic directory. However, there isn't quite as obvious a set of reference groupings with APIs as there is with CSS. Having thought about all this, I have to say that I agree with @Elchi3 that we should follow the same pattern as the CSS reorg if at all possible. To me, this would look like:
The biggest questions here, IMO, are:
I also agree with what @Rumyra is saying, that CSS and APIs are different beasts. We shouldn't think of CSS "Modules" as being the same thing as "APIs". I actually think the API landing pages are more useful than the CSS module landing pages — a bit more intuitive for those wishing to browse by spec grouping. For those not as familiar with the spec content who want to browse by pure functionality grouping, having solid Guide organization would be the way to solve that, imo. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion is about MDN information architecture changes planning for this year, specifically the Web API docs under /Web/API/*.
Based on IA work in other areas, we're applying content categorization of reference material separate from guides, tutorials, and how-tos. For the API docs, this means consolidating guide material and reference docs in a related parent.
I've shared some ideas of how to apply this to Web API docs internally with content & eng, and in the editorial calls to gather feedback from other writers and maintainers.
Background and rationale of the site-wide initiative is discussed at https://github.com/orgs/mdn/discussions/776
Purpose of this discussion
I want to share a proposal that incorporates feedback already based on what I've informally shared to date. This discussion is for course correction, in case there are other concerns or ideas that anyone hasn't shared yet, or other blockers you may spot.
Proposal
Currently, we have a relatively flat hierarchy in the API section, like:
I'm proposing we move all interfaces, events, and guides under the API in which they're defined. I've sketched out a sheet for interfaces which you can request access for to see the idea. This would move all interfaces into 143 directories with
web-api-overview
page type.Example API
For the Window Management API, we can look at the current state:
The proposed structure would be:
Feedback
The feedback I've gotten already is much appreciated. If you've missed a chance to share thoughts of concerns, you're welcome to do so here.
Unknowns
Some unknowns so far are how to elegantly handle extensions, for instance, we have
Web/API/Window/getScreenDetails
, which we may consider moving, too:It's a tricky problem to solve, especially given site nav changes when going from Window to Window Management API and back.
Updates
I'll update this discussion as this progresses, with info on when we'll start and how to get involved.
Other discussions / issues
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions